package forum.server.domain;
/**
 * this class is used to save the guests count.
 *
 */
public class Guest {

	private int guestsCount;
	private int id;
	public Guest(){
		this.guestsCount = 0;
		this.id = -3;
	}
	/**
	 * @return the guestsCount
	 */
	public int getGuestsCount() {
		return guestsCount;
	}
	/**
	 * @param guestsCount the guestsCount to set
	 */
	public void setGuestsCount(int guestsCount) {
		this.guestsCount = guestsCount;
	}
	/**
	 * inc the count.
	 */
	public void incGuestsCount() {
		this.guestsCount++;
	}
	/**
	 * dec the count.
	 */
	public void decGuestsCount() {
		if(this.guestsCount > 0)
			this.guestsCount--;
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
}
